<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='生产完工报工')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/jobBooking/operation.css}" rel="stylesheet" />
<body class="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="margin: 10px;">
					<div class="page-heading">
						<div class="" >
							<div style="margin-bottom: 5px;">
								<div style="float:left;margin-right: 10px;">
									<span class="spanCss">工作中心：</span>
									<select name="fDepId" id="fDepId" class="selectpicker clean-c " data-live-search="true" data-width="140px">
									</select>
								</div>
								<div style="float:left">
									<span class="spanCss">任务单号：</span> 
									<input type="text" id="fBillNo" name="fBillNo" class="form-control clean-c" style="width: 150px; margin-right: 10px;" /> 
									<span class="spanCss">派工单号：</span> 
									<input type="text" id="fCode" name="fCode" class="form-control clean-c" style="width: 150px; margin-right: 10px;" /> 
									<span class="spanCss">操作工卡号：</span> 
									<input type="text" id="fWorkerF" name="fWorker" class="form-control clean-c" style="width: 100px; margin-right: 10px;" /> 
									<span class="spanCss">操作工姓名：</span> 
									<input type="text" id="wname" name="wname" class="form-control clean-c" style="width: 100px; margin-right: 10px;" placeholder="自动获取" readonly="readonly"//>
								</div>
								<div style="float:left">
									<button id="query" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
									<button type="button" class="btn btn-default " id="reset">重置</button>
								</div>
								<div style="clear:both"></div>
							</div>
							<div>
								<!-- 开工记录表 -->
								<table id="finishTable" class="table dataTable table-hover tableList">
								</table>
							</div>
							<div>
							<form action="#" id="finishData1">
								<div id = "contentId_single">
								</div>
								<div class="col-sm-2 col-md-2 bottomContent">
								<input type="hidden" id="fWorker" name="fWorker" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
								<input type="hidden" id="fStartWorkId" name="fStartWorkId" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
								<input type="hidden" id="fTargetQty" name="fTargetQty" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
								</div>								
							</form>
							</div>							
							<div id = "content_bottom_single" style="display:none;float:left;width:100%">
							   <div class="bottomTips" style="margin-left: 11px;">
								  <span class="requiredCss">注：1、*号为必填字段！ &nbsp;2、工废1为工废不记个人&nbsp;3.需要填写备注时,备注不可填写0</span>
							   </div>
							   <div class="bottomBTNGroup">
							    	<button  type="button" class="btn btn-default" id="save_single">提交</button>
							    	<button  type="button" class="btn btn-default" id="godown_single" style="margin-left:10px;">挂起</button>
						       </div>
							</div>						
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 模态框 start -->
		<div class="modal fade " id="mergeModal" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true"
			style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
			<div class="modal-dialog" style="width: 1310px; height: 220px;">
				<div class="modal-content" style="width: auto;">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="titleModal">合并工序</h4>
					</div>
					<div id = "modal-body-id" class="modal-body" style="height: auto; padding: 10px;width: 100%;margin-left: 44px;">
						<div>
							<form action="#" id="finishData">
								<div id = "contentId">
								</div>
								<!-- <div class="col-sm-2 col-md-2 bottomContent">
								<input type="hidden" id="fWorker" name="fWorker" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
								<input type="hidden" id="fStartWorkId" name="fStartWorkId" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
								<input type="hidden" id="fTargetQty" name="fTargetQty" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
								</div> -->								
							</form>
							</div>							
							<div id = "content_bottom" style="display:none;float:left;width:100%">
							   <div class="bottomTips" style="margin-left: 11px;">
								  <span class="requiredCss">注：1、*号为必填字段！ &nbsp;2、工废1为工废不记个人&nbsp;3.需要填写备注时,备注不可填写0</span>
							   </div>
							   <div class="bottomBTNGroup">
							    	<button  type="button" class="btn btn-default" id="save">提交</button>
							    	<button  type="button" class="btn btn-default" id="godown" style="margin-left:10px;">挂起</button>
						       </div>
							</div>	
					</div>
				</div>
			</div>
		</div>
		<!-- 模态框 end -->
	</div>
	<span id="type" style="display: none;">0</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<script th:src="@{js/jobBooking/finishOperation.js}"></script>	
</body>
</html>